package edu.sctu.practice.class01.wulixia.momth12_wlx.assign05.two;

/**
 * Created by wulixia .
 */
public class Sort3 {
    public double max1;
    public double max2;
    public double max3;
    Sort3(){
        max1=-1;
        max2=-1;
        max3=-1;
    }
    void sort(){
        double s;
        if (max1<max2){
            s=max1;max1=max2;max2=s;
        }
        if (max1<max3){
            s=max1;max1=max3;max3=s;
        }
        if (max2<max3){
            s=max2;max2=max3;max3=s;
        }
    }

}
